<template>
<div>
  <h2>主题：{{$route.meta.title}}-MusicDetail</h2>
<!--  query传参-->
<!--  <h3>姓名：{{$route.query.name}}-&#45;&#45;年龄:{{$route.query.age}}</h3>-->
<!--  props传参-->
  <h3>姓名：{{name}}---年龄:{{age}}</h3>
</div>
</template>

<script>
export default {
  name: "MusicDetail",
  props:["name",'age']
}
</script>

<style scoped>

</style>